package com.sxpcwlkj.system.entity.bo;


import com.sxpcwlkj.framework.entity.BaseEntity;
import com.sxpcwlkj.system.entity.SysNotice;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.NotEmpty;
/**
 * 系统公告;
 *
 * @author 西决 942879858@qq.com
 * @since 1.0.0 2024-05-23
 */
@EqualsAndHashCode(callSuper = false)
@Data
@AutoMapper(target = SysNotice.class)
public class SysNoticeBo extends BaseEntity {
    /**
     * 公告ID
     */
    private String id;
    /**
     * 公告标题
     */
    @NotBlank(message = "公告标题不能为空")
    private String title;
    /**
     * 公告内容
     */
    @Size(min = 10, message = "公告内容{min}个字符")
    private String content;
    /**
     * 公告类型
     */
    @NotNull(message = "公告类型不能为空")
    private Integer type;
}
